fix: pin the team model for every opencode session - #88
Closed
kateebonner wants to merge 1 commit into
Closed
Conversation
… global Sessions on machines with an empty global config were silently running opencode's free anonymous model (big-pickle) — the source of the "free-model phrasing variance" behind interview protocol breaks — and teammates debugging the same flow could be on different models entirely. AMICODE_MODEL (anthropic/claude-sonnet-5) is now injected in OPENCODE_CONFIG_CONTENT and wins the deep-merge over any user global model (verified against the real vendored binary); non-conflicting user config keys still survive. Requires provider auth — no auth now fails loudly instead of degrading silently. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every amicode session now runs one pinned model —
AMICODE_MODEL = anthropic/claude-sonnet-5— injected viaOPENCODE_CONFIG_CONTENT, never read from the user's global opencode config.Why: machines with an empty global config were silently falling back to opencode's free anonymous model (
big-pickle) — the source of the "free-model phrasing variance" (#75's words) behind interview protocol breaks like invented Other options — and two people debugging the same flow could be on different models without knowing.Verified on the real vendored binary (1.17.3): the pin beats a conflicting user global
model; non-conflicting user keys (e.g.permission.doom_loop) still survive the deep-merge. Note: this makes provider auth (opencode auth login) a requirement — no auth fails loudly instead of degrading silently.🤖 Generated with Claude Code